
<!--
Template for an Assignment.
Evaluated each time the commandAssignment changes
-->
<div aria-live="polite">
  <div>
    <div class="gcli-af-cmddesc">
      ${requisition.commandAssignment.value.description}
    </div>
    <table class="gcli-af-params">
      <tbody foreach="assignment in ${requisition.getAssignments()}">
        <!-- Parameter -->
        <tr>
          <td class="gcli-af-paramname">
            <label for="gcliForm${assignment.param.name}">
              ${assignment.param.description ? assignment.param.description + ':' : ''}
            </label>
          </td>
          <td>${getInputFor(assignment)}</td>
          <td>
            <span class="gcli-af-required" if="${assignment.param.isDataRequired}">*</span>
          </td>
        </tr>
        <tr>
          <td class="gcli-af-error" colspan="2">
            ${linkMessageElement(assignment, __element)}
          </td>
        </tr>
      </tbody>
      <tfoot>
        <tr>
          <td colspan="3" class="gcli-af-submit">
            <input type="submit" value="Cancel" onclick="${onFormCancel}"/>
            <input type="submit" value="OK" onclick="${onFormOk}" save="${okElement}"/>
          </td>
        </tr>
      </tfoot>
    </table>
  </div>
</div>
